//
//  KYBubbleView.h
//  DrugRef
//
//  Created by chen xin on 12-6-6.
//  Copyright (c) 2012年 Kingyee. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum AccessoryViewType {
    AccessoryViewTypeDefault = 0,                               //title和detailTitle都显示
	AccessoryViewTypeShowTitle,                                 //只显示title
	AccessoryViewTypeShowDetailTitle,                          //只显示detailTitle
    AccessoryViewTypeDefaultSingleLine,                        //title和detailTitle都单行显示
} AccessoryViewType;

@protocol AppsBubbleAnnotationAccessoryViewDelegate;
@interface AppsBubbleAnnotationAccessoryView : UIView {
    UILabel *titleLabel,*detailLabel;
    UIButton *rightButton,*touchButton;
}

@property(nonatomic,assign) id<AppsBubbleAnnotationAccessoryViewDelegate> delegate;

@property(nonatomic,copy) NSDictionary *dataInfo;
@property(nonatomic,assign) NSUInteger index;

- (BOOL)showFromRect:(CGRect)rect type:(AccessoryViewType)accessoryViewType;

@end

@protocol AppsBubbleAnnotationAccessoryViewDelegate <NSObject>

@optional
- (void)appsBubbleAnnotationAccessoryView:(AppsBubbleAnnotationAccessoryView *)bubbleView didSelect:(NSInteger)index;

@end